
package com.rt.schedulenew.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rt.schedulebase.dto.ExamScheduleApmRegularDto;
import com.rt.schedulebase.entity.ExamScheduleApmRegular;
import com.rt.schedulebase.mapper.ExamScheduleApmRegularMapper;
import com.rt.schedulenew.api.IExamScheduleApmRegularService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class ExamScheduleApmRegularServiceImpl extends ServiceImpl<ExamScheduleApmRegularMapper, ExamScheduleApmRegular> implements IExamScheduleApmRegularService {
    @Override
    public boolean insertSelective(ExamScheduleApmRegular examScheduleApmRegular) {
        return this.retBool((baseMapper).insert(examScheduleApmRegular));
    }

    @Override
    public boolean deleteByPrimaryKey(String key) {
        return this.retBool((baseMapper).deleteById(key));
    }

    @Override
    public boolean updateByPrimaryKeySelective(ExamScheduleApmRegular examScheduleApmRegular) {
        return this.retBool((baseMapper).updateById(examScheduleApmRegular));
    }

    @Override
    public ExamScheduleApmRegular selectByPrimaryKey(String key) {
        return (baseMapper).selectById(key);
    }

    @Override
    public List<ExamScheduleApmRegular> getList(ExamScheduleApmRegularDto dto) {
        QueryWrapper<ExamScheduleApmRegular> qw = new QueryWrapper<>();
        Map<String, Object> map = new HashMap<>();
        qw.allEq(map, false);
        List<ExamScheduleApmRegular> list = (baseMapper).selectList(qw);
        return list;
    }

    @Override
    public List<ExamScheduleApmRegular> getListAll() {
        return (baseMapper).selectList(null);
    }

    @Override
    public boolean delete(ExamScheduleApmRegular p0) {
        return false;
    }

    @Override
    public boolean update(ExamScheduleApmRegular p0) {
        return false;
    }

    @Override
    public ExamScheduleApmRegular getInfo(ExamScheduleApmRegularDto p0) {
        return null;
    }
}
